#ifndef MINIONSELECTIONDIALOG_H
#define MINIONSELECTIONDIALOG_H

#include <QWidget>
#include <QTimer>
#include <QPair>
#include <QString>
#include <QPixmap>
#include "gamesettings.h"

namespace Ui {
class MinionSelectionDialog;
}

class MinionSelectionDialog : public QWidget
{
    Q_OBJECT
    
public:
    explicit MinionSelectionDialog(QWidget *parent = 0);
    ~MinionSelectionDialog();

    void Initialize(GameSettings &Settings);

public slots:
    void CountdownTick();
    void paintEvent(QPaintEvent *);
    void mousePressEvent(QMouseEvent *);
    
private slots:
    void on_sliderMinionSelection_valueChanged(int);

private:
    void LoadAvailableMinions();

private:
    Ui::MinionSelectionDialog *ui;

    GameSettings CurrentSettings;
    QTimer CountdownTimer;
    int PreGameCountdown;

    QVector<QPair<QString, QPixmap> > AvailableMinions;
};

#endif // MINIONSELECTIONDIALOG_H
